package com.ph.irp.base.assistantmaterial.dao;

import java.sql.SQLException;
import java.util.List;

import com.ph.irp.model.PBaseAssistantmaterialDuty;

public interface PBaseAssistantmaterialDutyDao {
	/**
	 * 辅助资料-职务分类基本信息
	 * 依次为增，删，改，查（精确），动态查询，判断是否有重复方法
	 * @param duty
	 * @throws SQLException
	 */
	public void addPBaseAssistantmaterialDuty(PBaseAssistantmaterialDuty duty)throws Throwable;
	
	public void deletePBaseAssistantmaterialDuty(int dutyId)throws Throwable;
	
	public void updatePBaseAssistantmaterialDuty(PBaseAssistantmaterialDuty duty)throws Throwable;
	
	public PBaseAssistantmaterialDuty getDutyById(int dutyId)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDutyByCode(String code)throws Throwable;
	@SuppressWarnings("unchecked")
	public List getDutyByName(String name)throws Throwable;
	
	@SuppressWarnings("unchecked")
	public List getDutyByCodeAndName(String code,String name)throws Throwable;
	
	public List<PBaseAssistantmaterialDuty> getDutyList()throws Throwable;
	
	public boolean isSame(String dutyCode)throws Throwable;
	
	
//	public int getCount()throws Throwable;

	
}
